package model

import "time"

type Safe struct {
	Id        uint      `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	UserId    uint      `gorm:"column:user_id;type:bigint(20);comment:用户id;not null;" json:"user_id"`   // 用户id
	Content   string    `gorm:"column:content;type:varchar(255);comment:违规信息;not null;" json:"content"` // 违规信息
	BName     string    `gorm:"column:b_name;type:varchar(255);comment:消息类型;not null;" json:"b_name"`   // 消息类型
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
}

func (sa *Safe) TableName() string {
	return "safe"
}
